/**
 * 
 */
package neptune.web.client.view.input;

/**
 * A trivial implementation of an InputValidator, it returns false only if the
 * input string is formed by 0 characters.
 * 
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * @see neptune.web.client.view.input.InputValidator
 * 
 */
public class DefaultInputValidator implements InputValidator {

	/*
	 * (non-Javadoc)
	 * 
	 * @see neptune.web.client.view.InputValidator#isValid(java.lang.String)
	 */
	public boolean isValid(String input) {
		if (input.equals(""))
			return false;
		return true;
	}

}
